import request from '@/utils/request'


// 查询充值列列表
export function listRechange(query) {
  return request({
    url: '/system/rechange/list',
    method: 'get',
    params: query
  })
}

// 查询充值列详细
export function getRechange(ordeid) {
  return request({
    url: '/system/rechange/' + ordeid,
    method: 'get'
  })
}

// 新增充值列
export function addRechange(data) {
  return request({
    url: '/system/rechange',
    method: 'post',
    data: data
  })
}

// 修改充值列
export function updateRechange(data) {
  return request({
    url: '/system/rechange',
    method: 'put',
    data: data
  })
}

// 删除充值列
export function delRechange(ordeid) {
  return request({
    url: '/system/rechange/' + ordeid,
    method: 'delete'
  })
}

// 导出充值列
export function exportRechange(query) {
  return request({
    url: '/system/rechange/export',
    method: 'get',
    params: query
  })
}


//用户申请提交
export function applyRechange(data){
  return request({
    url:'/system/rechange/apply',
    method:'post',
    params:data
  })
}
